home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
rbbs_pc
/
msgtos13.zip
/
BINK.BAT
next >
Wrap
DOS Batch File
|
1990-03-31
|
3KB
|
65 lines
REM MSGCLEAN is created by MSGTOSS and contains RENUMBERING and message
REM maintenance commands. Also, the /FMAS and /SECL switch(s) on the
REM "MSGTOSS /TOSS ..." command line is recommended. Read DOCS throughly
REM on these.
REM Example of a Single Node system.
:RECMAIL
C:
CD\BT
Msgtoss /TOSS /PREP /FIX /MWSET
If Exist Msgclean.bat Call Msgclean.bat
:SCAN
rbbsmail /f:arearbbs.bbs scan /l /o
ommm -iC:\BT\binkley.prm -mC:\MAIL\NMAIL\ -hC:\BT\OUT\ -cC:\BT\ommm.ctl -d -z1 -q -a
Goto START
------------------------------------------------------------------------
REM Example of a Multi-Node system, using ALLFIG to lock-out the [J] command
REM before tossing. Uses the /WAIT switch to make sure all users are off-line.
REM The /WAIT-F will exit, creating MSGWAIT.BAT if all clear. Using just
REM /WAIT will instead SHELL out and execute the CONFLOCK command and return
REM to MSGTOSS to complete tossing. Also notice the /PKTS:2 switch. This
REM tells MSGTOSS to NOT CREATE msgwait.bat UNLESS there are at least 2 PKTs.
REM Place these two lines at the VERY TOP of your batch file
If Exist C:\BT\*.PKT Goto RECMAIL
If Exist C:\BT\*.?UT Goto RECMAIL
:START
Execute Binkley.... Blah, blah....
REM Every time your binkley.bat (or other front end mailer) batch file is
REM executed, the bat file will check to see whether there are PKTS to process.
REM If there are, it will go through the RECMAIL portion to make sure all users
REM are off-line. If all users are off-line, MSGTOSS will process. If not, it
REM will wait till the next time the batch file is executed and try again.
REM Also notice the "SPAZ" command in the batch file. This is taken directly
REM from the MSGTOSS.CFG file and the "UNARCH---->" parameter is commented out
REM by a ";". The reason for executing SPAZ exterior to MSGTOSS is so you can
REM detect the presence off *.PKTs at the TOP of your Binkley batch file. In
REM other words, the mail packets (arcmail) will ALWAYS be unarched after you
REM receive mail by SPAZ, but not processed by MSGTOSS until all users are
REM off line.
:RECMAIL
C:
CD\BT
SPAZ -F -Q C:\MAIL\FILES C:\BT\
Msgtoss /WAIT-F /PKTS:2
If Not Exist Msgwait.bat Goto START
ALLFIG C:\RBBS\ALL1 130 N J 100 \n
Msgtoss /TOSS /PREP /FIX /MWSET
If Exist Msgclean.bat Call Msgclean.bat
:SCAN
rbbsmail /f:arearbbs.bbs scan /l /o
ommm -iC:\BT\binkley.prm -mC:\MAIL\NMAIL\ -hC:\BT\OUT\ -cC:\BT\ommm.ctl -d -z1 -q -a
ALLFIG C:\RBBS\ALL1 130 N J 40 \n
Goto START